<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
    <title>Pathways</title>
</head>
<body>
    <form action="{% url igem.views.upload_file %}" enctype="multipart/form-data" method="POST"> {% csrf_token %}
    <table>{{form.as_table }}</table>
    <input type="submit" name="sbml" value="Show Species">
    <input type="submit" name="sbml" value="Show Reactions">
    <input type="submit" name="sbml" value="Show Functions">
    <input type="submit" name="sbml" value="Show Global parameters">
    <input type="submit" name="sbml" value="Show Rules">
    </form>
    {{fname}}
    {{sbml}}

    {% if objs %}
	<table border="1" cellpadding="2">
		<thead>
			<tr>
	                {% ifequal sbml "Show Species" %}
				<th>Species ID</th>
				<th>Name</th>
				<th>Compartment</th>
				<th>Initial concentration</th>
				<th>Fixed</th>
 	               {% endifequal %}
	               {% ifequal sbml "Show Reactions" %}
				<th>Reaction ID</th>
				<th>Name</th>
				<th>Reversibility</th>
				<th>Reaction Equation</th>
				<th>Modifiers</th>
				<th>Kinetic Law</th>
 	               {% endifequal %}
	               {% ifequal sbml "Show Functions" %}
				<th>Function ID</th>
				<th>Name</th>
				<th>Formula</th>
 	               {% endifequal %}
	               {% ifequal sbml "Show Global parameters" %}
				<th>Pameter ID</th>
				<th>Name</th>
				<th>Value</th>
 	               {% endifequal %}
	               {% ifequal sbml "Show Rules" %}
				<th>Rule ID</th>
				<th>Name</th>
				<th>Formula</th>
 	               {% endifequal %}
		</tr>
		</thead>
		<tbody>
			{% for obj in objs %}
			<tr>
				{% for o in obj %}
				<td>{{o}}</td>
				{% endfor %}
			</tr>
			{% endfor %}
		</tbody>
	</table>
    {% endif %}
</body>
</html>
